import { createApp } from 'vue';
import TDesign from 'tdesign-vue-next';
import router from './router'; // 引入路由配置文件
import { createPinia } from 'pinia';
import persist from 'pinia-plugin-persistedstate'; // 持久化插件
import 'virtual:uno.css';
import '@unocss/reset/tailwind.css'; // 清除浏览器默认样式
import App from './App.vue';

import '@/styles/index.scss';

// 引入组件库的少量全局样式变量
import 'tdesign-vue-next/es/style/index.css';

createApp(App)
  .use(TDesign)
  .use(router)
  .use(createPinia().use(persist))
  .mount('#app');
